﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RunUOGenerator
{
    public partial class TextControl : BaseTabControl
    {
        public TextControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Sets or gets the width of this control.
        /// </summary>
        public override int Width
        {
            set
            {
                base.Width = value + 10;

                textBox.Width = value;
                //this.Size = new Size(value + 2, this.Size.Height);
            }
            get { return this.Size.Width; }
        }

        private void textBox_TextChanged(object sender, EventArgs e)
        {
            base.Value = textBox.Text;
        }
    }
}
